import http from '../utils/request'
// 获取省份列表
const getProvinceList = function(data){
    return http.get('/api/province',data)
};
// 获取城市列表
const getCityList = function(data){
    return http.get('/api/city',data)
};
// 获取区县列表
const getCountyList = function(data){
    return http.get('/api/county',data)
};

const districtsApi = {
    getProvinceList,
    getCityList,
    getCountyList
}

export default districtsApi